package org.jeecg.controller;

import org.apache.ibatis.annotations.Param;
import org.jeecg.domain.util.ResponseResult;
import org.jeecg.domain.vo.CommonUserVo;
import org.jeecg.service.CommonUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
public class CommonUserController {
    @Autowired
    private CommonUserService commonUserService;
    @GetMapping("listcommon")
    public ResponseResult listcommon(CommonUserVo commonUserVo){
        return commonUserService.listcommon(commonUserVo);
    }
    //修改状态禁用开启
    @PostMapping("updatestauts")
    public ResponseResult updatestauts(@Param("id") Long id){
        return ResponseResult.okResult(commonUserService.updatestauts(id));
    }
}
